<?php


namespace App\Models\Garbage;
use Illuminate\Database\Eloquent\Model;

class GarbageGoodPurchase extends Model
{
    /**
     *
     */
    protected $table = 'garbage_good_purchase';
    protected $fillable = ['point','good_id','exchange_time','code','user_id','num','change_id'];

    function goods(){
        return $this->belongsTo(GarbageGoodInfo::class,'good_id')->with(['files','kind']);
    }
}